<template>
	<view class="wrapper">
		<u-navbar :title="$t('setting.PrivacyAgreement')" :autoBack="false" @leftClick="gotoBack" bgColor="#F6F6F6"
			titleStyle="font-weight: 500; color: #000000;" :placeholder="true">
		</u-navbar>
		<view class="text-container" :style="`height: calc(${WindowInfo.windowHeight}px - 44px - 60rpx)`">
		<view class="text-content-blod">
      {{ $t('setting.PrivacyTip1') }}
			
		</view>
		<view class="text-content">
      {{ $t('setting.PrivacyTip2') }}
		
		</view>
		<view class="text-content">
      {{ $t('setting.PrivacyTip3') }}
			
		</view>
		<view class="text-content">
      {{ $t('setting.PrivacyTip4') }}
			
		</view>
		<view class="text-content">
      {{ $t('setting.PrivacyTip5') }}
			
		</view>
		<view class="text-content">
      {{ $t('setting.PrivacyTip6') }}
			
		</view>
		<view class="text-content">
      {{ $t('setting.PrivacyTip7') }}
			
		</view>
		<view class="text-content">
      {{ $t('setting.PrivacyTip8') }}
			
		</view>
		<view class="text-content-blod">
      {{ $t('setting.PrivacyTip9') }}
			
		</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "AboutDetailUser",
		data() {
			return {
				WindowInfo: ''
			}
		},
		onLoad(option) {
			this.getPrePages() // 获取上一个页面的路径已经参数
			setTimeout(() => {
				this.WindowInfo = uni.getWindowInfo()
			}, 0)
		},
		methods: {
			// 返回上一页
			gotoBack() {
			if(getCurrentPages().length < 2) {
				uni.redirectTo({
				  url: `/${uni.getStorageSync("prePagesUrl")}`,
				});
			} else {
				uni.navigateBack()
			}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.wrapper {

		box-sizing: border-box;
		padding: 0 30rpx;

		.text-container {
			background: #FFFFFF;
			border-radius: 20px;
			overflow: auto;
			padding: 30rpx;
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #000000;
			line-height: 44rpx;
			box-sizing: border-box;
			
			.h2 {
				font-size: 40rpx;
				line-height: 60rpx;
				font-family: Source Han Sans CN;
				font-weight: 600;
				margin-bottom: 16rpx;
			}
			
			.text-content,.text-content-blod {
				font-size: 28rpx;
				line-height: 40rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #878787;
				text-indent: 2em;
			}
			.text-content-blod {
				font-weight: 600;
				color: #000000;
			}

			.text-header {
				height: 110rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 24rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #878787;

				&>view:first-child {
					margin-right: 11rpx;
				}

				&>view:last-child {
					margin-left: 11rpx;
				}
			}

			.text-content {
				overflow: auto;
				padding-bottom: 20rpx;
				box-sizing: border-box;
				word-wrap: break-word;
			}
		}
	}
</style>